const fs = require('fs');
const path = require('path');
const simpleGit = require('simple-git');



async function start() {
    try {
        const git = simpleGit('/home/szh/environment', { binary: 'git' });
        await git.pull();
        console.log('success');
    } catch (err) {
        console.log(err.message);
    }

}


start();